.class public Les/ya;
.super Ljava/lang/Object;
.source "LocalMediaManager.java"


# direct methods
.method private static a(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    const-string v0, "tool"

    .line 18
    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p0, "tools_video_edit"

    return-object p0

    :cond_0
    const-string v0, "localVideo"

    .line 19
    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    const-string v1, "local_video"

    if-eqz v0, :cond_1

    return-object v1

    :cond_1
    const-string v0, "player"

    .line 20
    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string p0, "player_video_edit"

    return-object p0

    :cond_2
    const-string v0, "dialog"

    .line 21
    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_3

    const-string p0, "result_dialog_edit"

    return-object p0

    :cond_3
    return-object v1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 22
    invoke-static {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertActivity;->a(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;I)V
    .locals 0

    .line 10
    invoke-static {p0, p1, p2}, Lcom/esfile/screen/recorder/picture/PictureEditActivity;->a(Landroid/content/Context;Ljava/lang/String;I)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Lcom/esfile/screen/recorder/picture/n$f;)V
    .locals 1

    .line 4
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 5
    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 6
    invoke-static {p0, v0, p2}, Les/ya;->a(Landroid/content/Context;Ljava/util/ArrayList;Lcom/esfile/screen/recorder/picture/n$f;)V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Lcom/esfile/screen/recorder/videos/edit/g$g;)V
    .locals 1

    .line 11
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/g;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/videos/edit/g;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 12
    invoke-virtual {v0, p2}, Lcom/esfile/screen/recorder/videos/edit/g;->a(Lcom/esfile/screen/recorder/videos/edit/g$g;)V

    .line 13
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/g;->a()V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 14
    new-instance v0, Les/ra;

    invoke-direct {v0, p0, p1, p2}, Les/ra;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    invoke-static {p2}, Les/ya;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    sget-object p2, Lcom/esfile/screen/recorder/andpermission/d;->c:[Ljava/lang/String;

    .line 16
    invoke-static {p0, v0, p1, p2}, Les/y5;->e(Landroid/content/Context;Les/y5$a;Ljava/lang/String;[Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    if-eqz p3, :cond_0

    .line 17
    invoke-static {p0, p1, p2}, Lcom/esfile/screen/recorder/videos/edit/activities/VideoEditActivity;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/util/ArrayList;Lcom/esfile/screen/recorder/picture/n$f;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;",
            "Lcom/esfile/screen/recorder/picture/n$f;",
            ")V"
        }
    .end annotation

    .line 7
    new-instance v0, Lcom/esfile/screen/recorder/picture/n;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/n;-><init>(Landroid/content/Context;)V

    .line 8
    sget p0, Les/z4;->durec_delete_picture_prompt:I

    sget v1, Les/z4;->durec_delete_image_success:I

    invoke-virtual {v0, p1, p2, p0, v1}, Lcom/esfile/screen/recorder/picture/n;->a(Ljava/util/ArrayList;Lcom/esfile/screen/recorder/picture/n$f;II)V

    .line 9
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/n;->a()V

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/util/ArrayList;Les/wb$c;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;",
            "Les/wb$c;",
            ")V"
        }
    .end annotation

    .line 1
    new-instance v0, Les/wb;

    invoke-direct {v0, p0}, Les/wb;-><init>(Landroid/content/Context;)V

    const/4 p0, 0x4

    .line 2
    invoke-virtual {v0, p0, p1, p2}, Les/wb;->a(ILjava/util/ArrayList;Les/wb$c;)V

    .line 3
    invoke-virtual {v0}, Les/wb;->b()V

    return-void
.end method

.method public static a(Ljava/util/List;Les/qa;Z)Z
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/qa;",
            ">;",
            "Les/qa;",
            "Z)Z"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p2, :cond_0

    return v0

    :cond_0
    if-nez p0, :cond_1

    return v0

    .line 23
    :cond_1
    new-instance p2, Ljava/io/File;

    invoke-virtual {p1}, Les/qa;->j()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p2}, Ljava/io/File;->length()J

    move-result-wide p1

    .line 24
    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p0

    :goto_0
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/qa;

    .line 25
    new-instance v2, Ljava/io/File;

    invoke-virtual {v1}, Les/qa;->j()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v2, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v1

    add-long/2addr p1, v1

    goto :goto_0

    :cond_2
    const-wide/32 v1, 0x1400000

    add-long/2addr p1, v1

    .line 26
    new-instance p0, Ljava/lang/StringBuilder;

    invoke-direct {p0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "select merge video and size (KB):"

    invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-wide/16 v1, 0x400

    div-long v1, p1, v1

    invoke-virtual {p0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    const-string v1, "TAG"

    invoke-static {v1, p0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const-wide v1, 0xffffffffL

    const/4 p0, 0x1

    cmp-long v3, p1, v1

    if-lez v3, :cond_3

    .line 27
    sget p1, Les/z4;->durec_cut_video_max_file_size_tip:I

    invoke-static {p1}, Les/ec;->a(I)V

    return p0

    .line 28
    :cond_3
    invoke-static {}, Les/qc;->b()J

    move-result-wide v1

    .line 29
    invoke-static {}, Les/qc;->c()J

    move-result-wide v3

    const-wide/16 v5, 0x0

    cmp-long v7, v1, v5

    if-eqz v7, :cond_5

    cmp-long v1, v3, p1

    if-gez v1, :cond_4

    goto :goto_1

    :cond_4
    return v0

    .line 30
    :cond_5
    :goto_1
    sget p1, Les/z4;->durec_cut_video_no_space:I

    invoke-static {p1}, Les/ec;->a(I)V

    return p0
.end method

.method public static b(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 4
    invoke-static {p1}, Les/ya;->b(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 5
    sget p0, Les/z4;->durec_video_not_found:I

    invoke-static {p0}, Les/ec;->b(I)V

    goto :goto_0

    .line 6
    :cond_0
    invoke-static {p0, p1, p2}, Lcom/esfile/screen/recorder/player/PlayerActivity;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method public static b(Landroid/content/Context;Ljava/util/ArrayList;Les/wb$c;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;",
            "Les/wb$c;",
            ")V"
        }
    .end annotation

    .line 1
    new-instance v0, Les/wb;

    invoke-direct {v0, p0}, Les/wb;-><init>(Landroid/content/Context;)V

    const/4 p0, 0x1

    .line 2
    invoke-virtual {v0, p0, p1, p2}, Les/wb;->a(ILjava/util/ArrayList;Les/wb$c;)V

    .line 3
    invoke-virtual {v0}, Les/wb;->b()V

    return-void
.end method

.method private static b(Ljava/lang/String;)Z
    .locals 1

    .line 7
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method
